<% unless field.multiple? %>
  <div class="row">
    <div class="col-sm-4">
      <%= form.select field.method_name, field.enum, { include_blank: true }.reverse_merge({ selected: field.form_value }), field.html_attributes.reverse_merge({ data: { enumeration: true }, placeholder: t('admin.misc.search') }) %>
    </div>
  </div>
<% else %>
  <%
    js_data = {
      xhr: false,
      sortable: false,
      cacheAll: true,
      regional: {
        add: t("admin.misc.add_new"),
        chooseAll: t("admin.misc.chose_all"),
        clearAll: t("admin.misc.clear_all"),
        down: t("admin.misc.down"),
        remove: t("admin.misc.remove"),
        search: t("admin.misc.search"),
        up: t("admin.misc.up")
      }
    }
  %>
  <%= form.select field.method_name, field.enum, { selected: field.form_value, object: form.object }, field.html_attributes.reverse_merge({data: { filteringmultiselect: true, options: js_data.to_json }, multiple: true}) %>
<% end %>
